<template>
  <div class="login-contain">
    <div class="box">
      <div>
        <seven-chart />
      </div>
      <div>
        <eight-chart />
      </div>
    </div>
    <div class="box">
      <div>
        <nine-chart />
      </div>
      <div>
        <ten-chart />
      </div>

    </div>
  </div>
</template>

<script>
import SevenChart from '../components/gradeSevenChart.vue'
import EightChart from '../components/gradeEightChart.vue'
import NineChart from '../components/gradeNineChart.vue'
import TenChart from '../components/gradeTenChart.vue'

export default {
  name: 'LoginIndex',
  components: {
    SevenChart,
    EightChart,
    NineChart,
    TenChart
  },
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {
    window.onresize = () => {
      this.$echarts.init(document.getElementById('gradeEightChart')).resize()
      setTimeout(() => {}, 100)
      setTimeout(() => {
        this.$echarts.init(document.getElementById('gradeSevenChart')).resize()
      }, 200)
      setTimeout(() => {
        this.$echarts.init(document.getElementById('gradeNineChart')).resize()
      }, 300)
      this.$echarts.init(document.getElementById('gradeTenChart')).resize()
    }
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.box {
  width: 100%;
  height: 400px;
  display: flex;
  // padding-top: 20px;
  div {
    box-shadow: 1px 1px 3px rgb(0 0 0 / 20%);
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    margin-bottom: 30px !important;
  }
}
.login-contain {
  padding-top: 50px;
  width: 100%;
  height: 100vh;
}
</style>

